package com.yinhai.message.core.event;

import com.yinhai.message.api.vo.TMMessageVo;

import org.springframework.context.ApplicationEvent;

/**
 * maxp on 2017/3/30.
 */
public abstract class MessageEvent extends ApplicationEvent implements IMessageEvent {

    private TMMessageVo messageVo;

    public TMMessageVo getMessageVo() {
        return messageVo;
    }

    public void setMessageVo(TMMessageVo messageVo) {
        this.messageVo = messageVo;
    }

    public MessageEvent(Object source) {
        super(source);
        this.messageVo = (TMMessageVo) source;
    }

	public abstract String getEventType();
}
